> HI MArk,
> An ActiveX control must implement the IProvideClassInfo or
> IProvideClassInfo2 interface to enable
event handling on a Web page. IE
> uses this interface to obtain the type library for the control and
> determine the available
event set. When using theATL, the following 'lite
> control'
ATL objects do not implement the IProvideClassInfo2 interface by
> default:
> - Simple Object
> - Internet Explorer Object
> - Lite Control
> - Lite Composite Control
> - Lite HTML Control
> You can easily add support for event handling by implementing the
> IProvideClassInfo interfaces. This is done by deriving your control from
the
> default ATL implementation, IProvideClassInfo2Impl.
> 1. Add the following line to your class derivation list:
> public IProvideClassInfo2Impl<&CLSID_<object_name>, NULL,
> &LIBID_<project_name>Lib>
> 2. Add the following lines to your COM_MAP:
> COM_INTERFACE_ENTRY(IProvideClassInfo)
> COM_INTERFACE_ENTRY(IProvideClassInfo2)
> Hope that helps. For additional information you can take a look at KB
> Q200839
> Regards
> Chetan N Parmar
> Microsoft